<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ include file="/pages/jsp/common/common.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<%
response.setHeader("Cache-Control","no-cache"); //HTTP 1.1
response.setHeader("Pragma","no-cache"); //HTTP 1.0
response.setDateHeader ("Expires", 0); //prevents caching at the proxy server
%>
<head>
<link href="${pageContext.request.contextPath}/styles/css/style.css" type="text/css" rel="stylesheet" />
<link href="${pageContext.request.contextPath}/styles/css/header.css" type="text/css" rel="stylesheet" />
<link href="${pageContext.request.contextPath}/styles/css/main.css" type="text/css" rel="stylesheet" />
<script type="text/javascript">
	function login(){
		document.forms[0].submit();
	}	
	document.onkeydown=function(event){
		var e=event ? event : window.event;
		var code=e.keyCode ? e.keyCode : e.which;
		if(13 == code ){
			login();
		}
	}
</script>
</head>
<body class="body">
<!--登陆界面-->
<div class="Tloding">
	<!--title-->
    <div class="TL_title">
    <div class="TL_title2">
    <img src="${pageContext.request.contextPath}/images/Titile.png" />
    </div>
    </div>
    <!--title结束-->
    
    <!--login-->
    <div class="TL_biaoti">
    <img class="TL_biaoimg" src="${pageContext.request.contextPath}/images/login_icon.png" />
</div>
    <!--login结束-->
    
    <form action="${pageContext.request.contextPath}/login.do?action=login" method="post" id="form">
	    <!--centent-->
	    <div class="TL_center">
	    	<!--left-->
	    	<c:forEach var="error" items="${errors}" varStatus="status">
        		<div class="error" style="text-align:left;padding-left:50px;">${status.count}.${error}</div>
        	</c:forEach>
	    	<div class="TL_ctleft">	    	
	        <p>用户名：</p>
	        <p>密&nbsp;&nbsp;码：</p>
	        <p>验证码：</p>
	        </div>
	        <!--left结束-->
	        
	        <!--right-->
	        <div class="TL_ctright">
	        <p><input type="text" class="TL_input" name="username" value=""/></p>
	        <p><input type="password" class="TL_input" name="password" value=""/></p>
	        <p>
	        <span style="padding-right:10px;"><input type="text" class="TL_input2" name="checkcode" value=""/></span>
	        <a href=""><img src="imageServlet" style="vertical-align:top;" /></a>
	        </p>
	        <p><a href="javascript:void(0);" onclick="login();return false;" class="Alogin">登陆</a></p>
	        </div>
	        <!--right结束-->
	    </div>
	    <!--centent结束-->
    </form>
</div>
<!--登陆界面结束-->
</body>
</html>
